<template>
	<div>
		
	</div>
</template>

<script>
//用于取消正在进行的http请求
import axios from 'axios'
export default {
  name: 'quxiaoqingqiu',
  created() {
	let source = axios.CancelToken.source()
	axios.get('data.json',{
		cancelToken:source.token
	}).then(res=>{
		console.log(res)
	}).catch(err=>{
		console.log(err)
	})
  }
}
</script>

<style>
</style>
